import {useGetStudentsByIdQuery} from "@/store/studentApi";
const Student = (props) => {
   // console.log(props);  //{username,gender,age,address}
    const {stu:{attributes:{username,gender,age,address}}}=props
    const deleteHandler=()=>{

    }
   // console.log(props.stu.id,'4444444')
    const {data,isSuccess}=useGetStudentsByIdQuery(props.stu.id)
    console.log(data,'555555555555');
    return <tr>
        <td>{username}</td>
        <td>{gender}</td>
        <td>{age}</td>
        <td>{address}</td>
        <button onClick={deleteHandler}>删除</button>
        <button>编辑操作</button>

    </tr>
}
export default Student;